package ControlLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class LoanCtrTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class LoanCtrTest
{
    private ControlLayer.ControlDVD controlD1;
    private ControlLayer.LoanCtr loanCtr1;
    private ControlLayer.AddressCtr addressC1;

    

    /**
     * Default constructor for test class LoanCtrTest
     */
    public LoanCtrTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
        controlD1 = new ControlLayer.ControlDVD();
        controlD1.createDVD("1", "t1", "a1", "p1");
        controlD1.addCopiesToDVD("1", 11, "2011", 2011, "available");
        controlD1.addCopiesToDVD("1", 12, "2012", 2012, "available");
        controlD1.createDVD("2", "t2", "a2", "p2");
        controlD1.addCopiesToDVD("2", 21, "2021", 2021, "available");
        loanCtr1 = new ControlLayer.LoanCtr();
        addressC1 = new ControlLayer.AddressCtr();
        addressC1.createPerson("1993", "laszlo", "dannebrogsgade", 9000, "aalborg", "1234");
        addressC1.createPerson("1994", "Eliza", "center", 9100, "aalborg", "12354");
        addressC1.createPerson("1994", "razvan", "somewhere", 9200, "aalborg", "123132");
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }
}
